package com.lovo.controller;

import com.lovo.service.ICourseService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/courses")
public class CourseController {
    @Resource
    private ICourseService courseService;
    @GetMapping("/{id}")
    public Object selectById(@PathVariable("id") Long id){
        return courseService.selectById(id);
    }
}
